package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author ding
 * @since 2020-06-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_company_bill_note")
public class CompanyBillNoteDo extends Model<CompanyBillNoteDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 公司id
     */
    @TableField("company_id")
    private Long companyId;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 0 未还清 1已还清
     */
    @TableField("clear_flag")
    private Boolean clearFlag;

    /**
     * 账单金额
     */
    @TableField("amount")
    private Double amount;

    /**
     * 账单区间
     */
    @TableField("date_range_start")
    private String dateRangeStart;

    /**
     * 账单区间
     */
    @TableField("date_range_end")
    private String dateRangeEnd;

    /**
     * 剩余待还金额
     */
    @TableField("remian_amount")
    private Double remianAmount;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
